package com.gxgeek.springbootretrydemo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.retry.annotation.EnableRetry;

@SpringBootApplication
@EnableRetry
public class SpringbootRetryDemoApplication implements CommandLineRunner{

	@Autowired
	RemoteService remoteService;
	public static void main(String[] args) {
		SpringApplication.run(SpringbootRetryDemoApplication.class, args);
	}

	@Override
	public void run(String... args) throws Exception {
		remoteService.call();
	}
}
